import mediarequest from '@/utils/media-request'

// 批量内容包授权企业写入权限
export function packagesWriteToCorp(data) {
    return mediarequest({
        url: '/console/packages/rel/writepartners',
        method: 'put',
        data: data
    })
}

// 批量内容包分享到企业
export function packagesShareToCorp(data) {
    return mediarequest({
        url: '/console/packages/rel/sharepartners',
        method: 'put',
        data: data
    })
}

// 获取单个内容包授权写入权限的合作企业列表
export function getPackageWriteToCorp(data) {
    return mediarequest({
        url: '/console/package/rel/writepartners',
        method: 'get',
        params: data
    })
}

// 获取单个内容分享的合作企业列表
export function getPackageShareToCorp(data) {
    return mediarequest({
        url: '/console/package/rel/sharepartners',
        method: 'get',
        params: data
    })
}